{include file="index/header" /}
<body>
	<div class="panel admin-panel">
		<form method="get" action="" id="listform">
			<div class="panel-head"><strong class="icon-reorder"> 实操列表</strong> </div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left:10px;">
					<li style="font-size: 17px;">搜索：</li>
					<li>
						<select name="status" class="input" style="width:400px; line-height:17px;border: solid 1px #09f;font-weight: 700;" onchange="changesearch()"  id="nav">
							<option value="">请选择状态</option>
							<option value="1" {if $status eq 0}selected{/if}>未点评</option>
							<option value="2" {if $status eq 1}selected{/if}>已点评</option>
						</select>
					</li>
				</ul>
			</div>
			<table class="table table-hover text-center">
				<tr>
					<th>ID</th>
					<th>用户</th>
					<th style="text-align:left;">实操标题</th>
					<th>时间</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
				{foreach $data as $v}
				<tr>
					<td>{$v.id}</td>
					<td>{$v.know_nickname}/{$v.know_phone}</td>
					<td align="left">{$v.nav_name}<br/>{$v.type_name}<br/>{$v.s_name}<br/>{$v.course_name}</td>
					<td>{$v.time}</td>
					<td>{switch name="$v.grade" }
					{case value="1"}成功{/case}
					{case value="2"}失败{/case}
					{default /}<font color="#f00">未点评</font>
					{/switch}</td>
					<td><div class="button-group"><a class="button border-main" onclick="javascript:openwinx('{:url('dianping',['id' => $v['id']])}')"><span class="icon-edit"></span> {if $v.grade eq 0}点评{else}修改点评{/if}</a></div></td>
				</tr>
				{/foreach}
				<tr><td colspan="6">{$data->render()}</td></tr>
			</table>
		</form>
	</div>
</body></html>
<script>

//搜索
	function changesearch(){  
		$("#listform").submit();
	}
	function openwinx(url,name,w,h) {
		if(!w) w=screen.width-4;
		if(!h) h=screen.height-95;
		window.open(url,name,"top=100,left=400,width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");
	}
	$('.shuaxin').click(function(){
		history.go(0);
	});
	setcookie('refersh_time', 0);
	function refersh_window() {
		var refersh_time = getcookie('refersh_time');
		if(refersh_time == 1) {
			window.location.reload();
		}
	}
	setInterval("refersh_window()", 2000);
</script>